package client

import (
	"signal/client/broker"
)

func Init() func() {
	var cancels = make([]func(), 0)
	var inits = []func() func(){
		broker.Init,
	}

	for _, init := range inits {
		cancels = append(cancels, init())
	}

	return func() {
		for _, cancel := range cancels {
			cancel()
		}
	}
}
